
package hasthi.manager;

import java.util.Hashtable;
import java.util.Map;

public class Event2ActionRepository {
    private Event2ActionRepository parentRepository;
    private Map<String,String> repo = new Hashtable<String,String>();
    
    public Event2ActionRepository(Event2ActionRepository parentRepository){
        this.parentRepository = parentRepository;
    }
    
    public String getAction4Event(String eventID){
        String action = repo.get(eventID);
        if(action == null &&  parentRepository != null){
            action = parentRepository.getAction4Event(eventID);
        }
        return action;
    }
}

